<template>
    <div class="flex_col_start m5 p10 card">
        <label class="flex_center_self">落杯器控制</label>
        <div class="flex_row_center mt5">
            <el-button @click="onClickDropCup(1)">落杯1</el-button>
            <el-button @click="onClickDropCup(2)">落杯2</el-button>
            <el-button @click="onClickDropCup(3)">落杯3</el-button>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { drop_cup } from '@/service/devices/drop';
import { runAction } from '@/utils/ui';


async function onClickDropCup(id: number) {
    await runAction('落杯', `执行落杯${id}`, async () => {
        await drop_cup(id);
    });
}

</script>
